/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-09-14
 * Time: 13:07
 */

class MyThread extends Thread {
    @Override
    public void run() {
        System.out.println("Hello MyThread");
    }
}

public class demo3 {
    public static void main(String[] args) throws InterruptedException {
        MyThread m = new MyThread();
        Thread t = new Thread(m);
        t.start();
        t.join();

    }
}
